package test;

public class Threadtest {
	
	
	
	public static void main(String[] args) {
		
		long t1 = System.currentTimeMillis();
		for(int i = 0 ;i < 1000;i++) {
		new Thread(new Runnable() {
			
			@Override
			public void run() {
				
				System.out.println(1);
			}
		}).start(); 
		}	
		long t2 = System.currentTimeMillis();
		for(int i = 0 ;i < 1000;i++) {
			
			System.out.println(1);
		}
		long t3 = System.currentTimeMillis();
		
		System.out.println(t2 - t1);
		System.out.println(t3 - t2);
	}

}
